package com.jiantong.lawEnforcing.impl.dao;

import com.jiantong.lawEnforcing.model.WritType;
import io.terminus.common.mysql.dao.MyBatisDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * 案件类型dao层
 * Created by mz03 on 2017/9/7.
 */
@Repository
public class WritTypeDao extends MyBatisDao<WritType> {
    public List<WritType> allType() {
        return  this.sqlSession.selectList(this.sqlId("allType"));
    }
    public List<WritType> allDetailedTypeByType(Integer type) {
        return  this.sqlSession.selectList(this.sqlId("allDetailedTypeByType"),type);
    }

}
